clear all;
clc;

load mnist0v1;

trainsize = 1000;
C = 1;
kerneltype = 1;

Yp = svm(data,label(1:trainsize),C,kerneltype);

calacc(Yp,label(trainsize+1:size(label,1)))